﻿@model IEnumerable<SerieSpotter.Models.UserProfile>

@{
    ViewBag.Title = "Index";
}



@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@Resources.Resource.Adminpaneel</h1>
            </hgroup>
        </div>
    </section>
}

<div>
    <h1>Users</h1>

    @foreach (var item in Model)
    {
        <div>
            <p>
                @item.UserName

                @if (User.IsInRole("admin")) // enkel zitchbaar voor admin
                {

                    @Html.ActionLink(@Resources.Resource.Edit, "Edit", new { id = item.UserId })
                }
            </p>
        </div>
    }

    <p>
        @if (User.IsInRole("admin"))
{

    <h3> @Html.ActionLink(@Resources.Resource.Create, "Create") </h3>
}

    </p>

</div>



